<%-- 
    Document   : FormPengiriman
    Created on : Dec 13, 2013, 6:28:50 PM
    Author     : owner
--%>

<%@page import="java.util.List"%>
<%@page import="Controller.pesananGudang"%>
<%@page import="Model.Kirim"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
       <%
           if(request.getAttribute("message")!=null){
                out.println(request.getAttribute("message"));
           }
       %>
        <table border="1">
            <tr>
                <td>
                    ID BARANG
                </td>
                <td>
                    JUMLAH PESAN
                </td>
                <td>
                    ID PESAN
                </td>
                <td>
                    TANGGAL PESAN
                </td>
                <td>
                    KONFIRMASI
                </td>
            </tr>
            <tr>
                <td>
                    <%
                        List<Kirim> kirimarr = new pesananGudang().caribelumdikirim();
                        for (int idx = 0; idx < kirimarr.size(); idx++) {
                            out.println("<td>"+kirimarr.get(idx).getIdBarang()+"<td>"+kirimarr.get(idx).getJumlahPesan()
                                    +"</td><td>"+kirimarr.get(idx).getIdPesan()+"<td>"+kirimarr.get(idx).getTanggalPesan()+"<td>"
                                    +"<td><a href=\"konfirmasiPesan?id="+kirimarr.get(idx).getIdPesan()+"\">Kirim</a></td>");
                        }
                    %>
                </td>
            </tr>
        </table>
                <a href="MenuHomeGudang.jsp"/>Kembali</a>
</body>
</html>